package cn.cnlee.app.remote.response;

/**
 * 返回结果封装类
 *
 * @param <T>
 */
public class ResponseMsg<T> {

    private boolean ok;
    private String message;
    private T returnValue; // 具体的数据结果
    private int code;

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getReturnValue() {
        return returnValue;
    }

    public void setReturnValue(T returnValue) {
        this.returnValue = returnValue;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "ResponseMsg{" +
                "ok=" + ok +
                ", message='" + message + '\'' +
                ", returnValue=" + returnValue +
                ", code=" + code +
                '}';
    }
}
